<!-- 我的巡检 -->

<template>
  <div>
    <MySearch />

    <EasyScroll v-if="list.length">
      <MyList @click="openDetail" />
    </EasyScroll>
    <el-empty v-else :description="`暂无${GETTER.statusName.slice(-2)}任务`" />

    <WebTable v-if="list.length" auto>
      <RowSlot />
    </WebTable>

    <MyDetailTaskApp v-model="easyVisible" :obj="row" :tab="param.status" @change="refreshList" />
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import store from './store'
import WorkRepair from '../WorkRepair'

// ============================== 导出组件 ============================== //

export default CORE.extend(WorkRepair, {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'WorkInspection',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixStore(store)],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),
})
</script>
